package com.tcu.base.security;

import com.tcu.result.R;
import org.apache.shiro.authc.IncorrectCredentialsException;
import org.apache.shiro.authc.UnknownAccountException;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

//@RestControllerAdvice
public class ShiroExceptionHandler {
//    @ExceptionHandler(UnknownAccountException.class)
    public R unKnowAccountExceptionHandler(Exception e){
        return null;
    }
//    @ExceptionHandler(IncorrectCredentialsException.class)
    public R falseCredential(Exception e){
        return null;
    }
}
